package com.charles.seckillapi.model;

import com.charles.seckillapi.domain.SysUser;

import java.io.Serializable;

/**
 * @author Charles-H
 *
 * 客户登录信息
 */
public class UserLogin implements Serializable {
    
    private static final long serialVersionUID = 1L;

    /**
     * 登录令牌
     */
    private String token;

    /**
     * 客户ID
     */
    private Long userId;

    /**
     * 客户身份证号码
     */
    private String userCard;

    /**
     * 客户名称
     */
    private String username;

    /**
     * 登录IP
     */
    private String loginIp;

    /**
     * 登录时间
     */
    private Long loginTime;

    /**
     * 过期时间
     */
    private Long expireTime;

    /**
     * 客户信息
     */
    private SysUser sysUser;

    public UserLogin() {
    }

    public UserLogin(String token, Long userId, String userCard, String username, String loginIp, Long loginTime, Long expireTime, SysUser sysUser) {
        this.token = token;
        this.userId = userId;
        this.userCard = userCard;
        this.username = username;
        this.loginIp = loginIp;
        this.loginTime = loginTime;
        this.expireTime = expireTime;
        this.sysUser = sysUser;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserCard() {
        return userCard;
    }

    public void setUserCard(String userCard) {
        this.userCard = userCard;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Long getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Long loginTime) {
        this.loginTime = loginTime;
    }

    public Long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Long expireTime) {
        this.expireTime = expireTime;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    @Override
    public String toString() {
        return "LoginForm{" +
                "token='" + token + '\'' +
                ", userId='" + userId + '\'' +
                ", userCard='" + userCard + '\'' +
                ", username='" + username + '\'' +
                ", loginIp='" + loginIp + '\'' +
                ", loginTime=" + loginTime +
                ", expireTime=" + expireTime +
                ", sysUser=" + sysUser +
                '}';
    }
    
}
